<?php
class Pageley_Gateway_Database_MySql_QuerySqlDecorator extends Pageley_Gateway_Database_StandardQuerySqlDecorator {
    protected function getRangeClause($alias) {
        $range = $this->getRange();
        return $range !== null ? " LIMIT " . ($range->getEnd() - $range->getStart() + 1) . 
            " OFFSET " . ($range->getStart() - 1) : "";
    }
}